package com.service.srd;

import com.dao.srd.SrdMapper;
import com.pojo.Srd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SrdServiceImpl implements SrdService {

    @Autowired
    private SrdMapper srdMapper;

    @Override
    public List<Srd> list(int pageSize,int pageIndex,String goodsName) {
        return srdMapper.list(pageSize, pageIndex,goodsName);
    }

    @Override
    public int count() {
        return srdMapper.count();
    }

    @Override
    public int add(Srd srd) {
        return srdMapper.add(srd);
    }

    @Override
    public Srd selectId(int id) {
        return srdMapper.selectId(id);
    }

    @Override
    public int delete(int id) {
        return srdMapper.delete(id);
    }
}
